package com.atguigu.tingshu.dispatch.task;

import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author atguigu-mqx
 * @ClassName TaskTest
 * @description: TODO
 * @date 2025年04月28日
 * @version: 1.0
 */
@EnableScheduling
@Component
public class TaskTest {

    //  单节点：
    @Scheduled(cron = "0/5 * * * * ?")
    public void testTask(){
        System.out.println("死鬼你回来了.....");
    }


}
